//
//  NProblemModell.m
//  nncloud
//
//  Created by gdy on 2018/9/26.
//  Copyright © 2018年 youedata. All rights reserved.
//

#import "NProblemModel.h"

@implementation NProblemModel

+ (UIColor *)getProgressColorWithProgress:(NSString *)progress
{
    switch ([progress integerValue]) {
        case 0:
        case 1:
        case 5:
        case 6:
            {
                return NColorFrom16RGB(0xf97c14);
            }
            break;
        case 2:
        case 7:
            {
                return NColorFrom16RGB(0x5da7ff);
            }
            break;
        case 3:
        case 4:
            {
                return NColorFrom16RGB(0x49cc93);
            }
            break;
        case 8:
            {
            return NColorFrom16RGB(0x666666);
            }
            break;
        case 9:
        case 10:
            {
            return NColorFrom16RGB(0xeb2222);
            }
            break;
            
        default:
            {
                return [UIColor darkGrayColor];
            }
            break;
    }
//    return [UIColor redColor];
}


@end
